package com.labofjet.repository.module1;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.query.Procedure;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import com.labofjet.entity.Phone;

@Repository
public interface ARepository extends JpaRepository<Phone, Long>{
    
    @Procedure
    Integer plus1inout(Integer arg);
    
    @Procedure(name="plus1")
    Integer alias1(Integer arg);
    
    @Procedure(procedureName="plus1inout")
    Integer alias2(Integer arg);
    
    @Procedure(name="User.plus1")
    Integer alias3(@Param("arg")Integer argAlias);
    
    @Procedure
    Object[] mytest();
}
